<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>留言审核</title>
</head>
<body bgcolor="#abcdef">
    <% Vector<String> v =new Vector<String>)();
     int i = 0;
     %>
    <%
        String datetime = new SimpleDateFormat("yyy-MM-dd hh:mm:ss").forma
    %>
   <%
       // 获取留言板提交数据
       request.setCharacterEncoding("UTF-8");
       String name = request.getParameter("name");
       String title = request.getParameter("title");
       String title = request.getParameter("message");
   %>
   <%
       // 处理用户提交数据
       if (name == null || "".equals(name.trim())){
           // trim() 去取字符串中空格
           name = "网友"+(int)(Math.random()*100000+10000);
       }
       if(title == null || "".equals(title.trim())){
           title= "无"
       }
       if(message == null || "".equals(title.trim())){
       message= "无"
       }
   %>
    <%
        i++;
        String str = "第"+"<span class=span0"+ i +"</span>"+"楼"
        + ".<span class=span1>留言人：</span>"+name +".<span class=span2>标题:</span>"+title
        + ".<span class=span3>内容:</span><br>"+message
        + ".<span class=span4>时间:</span><br>"+datetine+".<br>"
    %>

</body>
</html>